

<div class="container-fluid">
<%= link_to (image_tag "logo.png", :align=>"right", :width=>"12%"), "http://www.rism.info" %>
<h1>RISM SRU/SRW for Watermarks</h1>


<br>


    <%= form_for "sru", :html => {:class => "form-inline"} do |m| %>          
          <%= m.text_field :name, :class=>"search", :value=>@name %>
          
          <%= hidden_field_tag :start, 1 %>
          <%= m.submit :value=> "Search", :class => "btn"%>

             
    <% end %>
 
 <% if !@count.present? %>
 <%= "Supported indexes: id, title, description, year, rism_id, composer."%>
  <br><br>
<%= "Example 1:  composer=Moz* and title=lion"  %>
<br>
<%= "Example 2:  rism_id='455*' and image='*' and year=16*"  %>
<br><br>
<%= "SRU/SRW Interface is available at " %>
<%= link_to "http://lab.rism.info:9910/watermark.", "http://lab.rism.info:9910/watermark" %>
See also 
<%= link_to "Additional information about SRU/SRW.", "http://www.loc.gov/standards/sru/simple.html" %>
<br>
<%end%>

 <%# @para %>
 <%# @start %>

<div class="row-fluid">
<div class="span12">
 
  <% if @count.present? %>
  
 <%= @count %> records found. <span style=" margin-left:600px"> 
  
 <%= link_to "New search", :controller => 'watermark',
:action => "sru" %>
  </span>
  <%= render "pager" %> 
  <% end %>
 
 <%if @name%>
 <% if @res.present? %>
 <%if @count.to_s.to_i>0 %> 

<%= raw @res %>
</div>
<%#= render "facet" %>


 </div>

<%= render "pager" %> 


<% end %> 
<%end%>
<%end%>
 
 

<br><br>

</div>
